﻿using System;

namespace _39_声明枚举类型_枚举
{
    class Program
    {
        static void Main(string[] args)
        {
            Options a = Options.OneWay;
            Options b = Options.TwoWay;
            Options c = Options.MixWay;


            Console.WriteLine($"常量名：{a},常量值:{(int)a}");
            Console.WriteLine($"常量名：{b},常量值:{(int)b}");
            Console.WriteLine($"常量名：{c},常量值:{(byte)c}");

        }
    }

     enum Options
        {
            OneWay=1,
            TwoWay=2,
            MixWay=3
        }



}
